﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using MyLocalChurch.Constants;
using RKConsulting.Web.Helpers;

namespace MyLocalChurch.Admin
{
    public partial class ViewBarcode : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (Page.IsPostBack)
                return;

            txtBarcode.Text = Request.QueryString[QueryParameters.Barcode];
            Refresh();
        }

        protected void txtBarcode_TextChanged(object sender, EventArgs e)
        {
            Refresh();
        }

        protected void btnRefresh_Click(object sender, EventArgs e)
        {
            Refresh();
        }

        protected void Refresh()
        {
            lblBarcodeValue.Text = txtBarcode.Text;
        }
    }
}